package com.keste.ojt1.view.task9.kvaka.flows.bean;

import oracle.adf.controller.TaskFlowId;

public class NavigationBean {
    private String taskFlow2 = "/WEB-INF/com/keste/ojt1/view/task9/kvaka/flows/SearchTF.xml#SearchTF";
    private String taskFlow1 = "/WEB-INF/com/keste/ojt1/view/task9/kvaka/flows/DeptreeTF.xml#DeptreeTF";
    private String taskFlowId = taskFlow1;
    
    public NavigationBean() {
    }

    public TaskFlowId getDynamicTaskFlowId() {
        return TaskFlowId.parse(taskFlowId);
    }


    public String showMasterDetail() {
        taskFlowId = taskFlow2;
        return null;
    }

    public String showTreeTable() {
        taskFlowId = taskFlow1;
        return null;
    }
}
